package com.szc.demo01.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.szc.demo01.dao.FileMapper;
import com.szc.demo01.pojo.MFile;
import com.szc.demo01.service.FileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class FileServiceImpl extends ServiceImpl<FileMapper, MFile> implements FileService {

    @Resource
    FileMapper fileMapper;

    @Override
    public List<MFile> sendFiles(long id) {
        return fileMapper.sendFiles(id);
    }

    @Override
    public List<MFile> receiveFiles(long id) {
        return fileMapper.receiveFiles(id);
    }

    @Override
    public List<MFile> notreceiveFiles(long id) {
        return fileMapper.notreceiveFiles(id);
    }

    @Override
    public MFile downFile(long fileId,long userId) {
        return fileMapper.downFile(fileId,userId);
    }
}
